{include file="admin/public/header" /}
<style type="text/css">
    #content-main{padding: 5px;}
</style>
<div class="aw-content-wrap">
   <div class="row">
            <div class="col-sm-12">

                <div class="ibox">
                    <div class="ibox-title">
                        <h5>组管理</h5>
                        <div class="ibox-tools">
                            <a href="/admin/user/editgroup.html" class="btn btn-primary btn-xs">添加组</a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="project-list">

                            <table class="table table-hover">
                                <tbody>
                                   <tr>
                                   
                                   <td><input type="checkbox" class="chooseall"></td>
                                   <td>id</td>
                                       <td >
                                            组名
                                        </td>
                                        <td >
                                               威望介于
                                        </td>
                                    
                                        <td >
                                           操作
                                        </td>
                                    </tr>
                                    <form action="" class="cmzForm">
                                    <?php foreach ($group as $key => $v): ?>
                                    <tr>
                                    <td><input type="checkbox" name="group_id" class="checkbox1" value="{$v.group_id}"></td>
                                    <td>{$v.group_id}</td>
                                        <td >

                                            <a href="javascript:;">{$v.group_name}
                                            <span class="label label-primary  <?php if($v['type']=="0"){ echo "label-danger";} ?>" style="margin-left:20px;"> <?php if($v['type']=="0"){ echo "系统组";}else{echo "用户组";} ?></span>
                                            </a>
                                            <!-- <br> -->
                                            <!-- <small>创建于 2016-12-12 10:54:17</small> -->
                                        </td>
                                        <td >
                                            <?php if($v['type']=="0"){  ?>
                                              <span class="label label-default " style="margin-left:20px;">系统组</span>  
                                            <?php }else{ ?>
                                                <span class="label label-default " style="margin-left:20px;">{$v.reputation_lower}-{$v.reputation_higer}</span>  
                                            <?php } ?>
                                        </td>
                                     
                                       
                                        <td >
                                        <?php if($v['group_id']!="1"){ ?>
                                            <div class="">
                                                <a href="{:url('admin/user/editgroup',['group_id'=>$v['group_id']])}" class="btn btn-white btn-sm"><i class="fa fa-pencil"></i> 编辑 </a>
                                                <a href="javascript:;" class="btn btn-info btn-sm"><i class="fa fa-shield"></i> 授权 </a>
                                                
                                                <a href="javascript:;" where="{:encode('group_id-'.$v['group_id'])}" table="{:encode('users_group')}" class="btn btn-danger btn-sm cmzdel"><i class="fa fa-trash-o"></i> 删除 </a>
                                                
                                            </div>
                                            <?php }else{ ?>
                                             <span class="label label-default " style="margin-left:20px;">超级管理员不可以进行操作</span>  
                                            <?php } ?>
                                        </td>
                                    </tr>
                                <?php endforeach ?>     
                                </form>                           
                                    </tbody>
                                </table>
                                      <div class="mod-table-foot">
                                        <!-- <a class="btn btn-danger cmzdelmore" where="group_id" table="{:encode('users_group')}" >删除</a> -->
                                    </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


</div>
{include file="admin/public/footer" /}